|
PHY ADD FORCE AT CLOTH VERTEX
Applies force to a specified vertex on a cloth object.
PHY ADD FORCE AT CLOTH VERTEX ID, vertex, x#, y#, z#, mode
ID
Integer
the identification number of the cloth object
vertex
Integer
the vertex index
x#
Float
force on the X axis
y#
Float
force on the Y axis
z#
Float
force on the Z axis
mode
Integer
method of force selecting from 0 which is a regular force, 1 for impulse, 2 for velocity change, 3 for smooth impulse, 4 for smooth velocity and 5 for acceleration
Applying forces to specific vertices on a cloth object is particularly useful to simulate effects such as wind. For example, you may want to select a strip of vertices at the edge of a cloth and apply force on the Z axis to push those vertices into the scene to create movement.
No example code is provided for this command
|